<!DOCTYPE html>



  


<html class="theme-next pisces use-motion" lang="">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.3" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.3">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=5.1.3">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=5.1.3">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.3" color="#222">





  <meta name="keywords" content="Hexo, NexT" />










<meta name="description" content="Vs远程调试可以实现本地vs编译直接运行在远程机器上，在远程机器上进行程序的操作，在本地vs中进行调试。 Vs远程调试步骤如下： 第一步，将VS软件安装路径中的Common7\IDE\Remote Debugger文件夹拷贝至目标机器上，在目标机器上使用管理员权限运行（若程序是32位，运行x86文件夹中的，程序是64位，运行x64文件夹中的）msvsmon.exe。选是；还有一个页面点击confi">
<meta property="og:type" content="article">
<meta property="og:title" content="Vs远程调试">
<meta property="og:url" content="http://handsomedz.gitee.io/shs0708/2017/10/28/Vs远程调试/index.html">
<meta property="og:site_name" content="Handsome&#39;s Blog">
<meta property="og:description" content="Vs远程调试可以实现本地vs编译直接运行在远程机器上，在远程机器上进行程序的操作，在本地vs中进行调试。 Vs远程调试步骤如下： 第一步，将VS软件安装路径中的Common7\IDE\Remote Debugger文件夹拷贝至目标机器上，在目标机器上使用管理员权限运行（若程序是32位，运行x86文件夹中的，程序是64位，运行x64文件夹中的）msvsmon.exe。选是；还有一个页面点击confi">
<meta property="og:updated_time" content="2017-10-27T16:17:18.438Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Vs远程调试">
<meta name="twitter:description" content="Vs远程调试可以实现本地vs编译直接运行在远程机器上，在远程机器上进行程序的操作，在本地vs中进行调试。 Vs远程调试步骤如下： 第一步，将VS软件安装路径中的Common7\IDE\Remote Debugger文件夹拷贝至目标机器上，在目标机器上使用管理员权限运行（若程序是32位，运行x86文件夹中的，程序是64位，运行x64文件夹中的）msvsmon.exe。选是；还有一个页面点击confi">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Pisces',
    version: '5.1.3',
    sidebar: {"position":"left","display":"always","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: 'Author'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://handsomedz.gitee.io/shs0708/2017/10/28/Vs远程调试/"/>





  <title>Vs远程调试 | Handsome's Blog</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">Handsome's Blog</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            Startseite
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            Archiv
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://handsomedz.gitee.io/shs0708/2017/10/28/Vs远程调试/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="Handsome">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Handsome's Blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">Vs远程调试</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">Veröffentlicht am</span>
              
              <time title="Post created" itemprop="dateCreated datePublished" datetime="2017-10-28T00:14:16+08:00">
                2017-10-28
              </time>
            

            

            
          </span>

          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <p>Vs远程调试可以实现本地vs编译直接运行在远程机器上，在远程机器上进行程序的操作，在本地vs中进行调试。</p>
<p>Vs远程调试步骤如下：</p>
<p>第一步，将VS软件安装路径中的Common7\IDE\Remote Debugger文件夹拷贝至目标机器上，在目标机器上使用管理员权限运行（若程序是32位，运行x86文件夹中的，程序是64位，运行x64文件夹中的）msvsmon.exe。<br><a href="Vs远程调试/Vs远程调试1.png"></a><br>选是；<br>还有一个页面点击confirmxxx，然后进入程序；</p>
<p>点击Tools-&gt;Options，按下图进行配置</p>
<p><a href="Vs远程调试/Vs远程调试2.png"></a> </p>
<p>第二步，此时在本地VS中打开Debug-&gt;AttachtoProcess,ConnectionTarget点Find，一般就能看到远程的机器，如下图（图中检测到两台机器：一个是在本地运行msvsmon进行配置，一个是在远程大板中进行的配置）;</p>
<p><a href="Vs远程调试/Vs远程调试3.png"></a> </p>
<p>选择某一台机器，就可以将该机器中的程序附加到本地VS进行调试。</p>
<p>（此时，已经可以进行远程调试了，但是需要将要调试的程序拷到对应机器上运行。）</p>
<p>第三步，在远程机器中共享一个文件夹，文件夹属性-&gt;共享，如下图配置使用哪个用户进行共享，并设置权限为读写或所有者。<br><a href="Vs远程调试/Vs远程调试4.png"></a> </p>
<p>网络和共享中心的高级共享设置中，勾选来宾和共用中的启用网络发现</p>
<p><a href="Vs远程调试/Vs远程调试5.png"></a> </p>
<p>此时远程机器共享的文件夹可以在本地进行访问，并具有写入权限。</p>
<p>第四步，vs中，打开启动项目的属性页面</p>
<p>1.设置Build选项中的OutputPath为共享的文件夹</p>
<p><a href="Vs远程调试/Vs远程调试6.png"></a> </p>
<p>2.设置Debug选项中的Startoptions，使用Use remote machine，并输入远程主机的ip</p>
<p><a href="Vs远程调试/Vs远程调试7.png"></a> </p>
<p>好的，大功告成，现在可以在本地VS中Build，Start啦！生成的文件在远程共享文件夹中，程序也会在远程机器上启动！</p>

      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      
      
      

      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      

      <section class="site-overview-wrap sidebar-panel sidebar-panel-active">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image"
                src="/images/avatar.jpg"
                alt="Handsome" />
            
              <p class="site-author-name" itemprop="name">Handsome</p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives/">
              
                  <span class="site-state-item-count">1</span>
                  <span class="site-state-item-name">Artikel</span>
                </a>
              </div>
            

            

            

          </nav>

          

          <div class="links-of-author motion-element">
            
          </div>

          
          

          
          

          

        </div>
      </section>

      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2017</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Handsome</span>

  
</div>


  <div class="powered-by">Erstellt mit  <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a></div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">Theme &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Pisces</a> v5.1.3</div>




        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.3"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.3"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.1.3"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.1.3"></script>



  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.3"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.3"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.3"></script>



  


  




	





  





  












  





  

  

  
  

  

  

  

</body>
</html>
